# $Id: PKGBUILD 148887 2012-02-05 11:54:17Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=pygtksourceview2
pkgver=2.10.1
pkgrel=4
pkgdesc="Python bindings for gtksourceview2"
arch=(i686 x86_64)
license=('GPL')
depends=('gtksourceview2>=2.10.0' 'pygtk>=2.17.0')
makedepends=('intltool' 'pkg-config')
options=('!libtool')
url="http://www.gnome.org"
source=(http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-${pkgver}.tar.bz2)
sha256sums=('b4b47c5aeb67a26141cb03663091dfdf5c15c8a8aae4d69c46a6a943ca4c5974')

build() {
  cd "${srcdir}/pygtksourceview-${pkgver}"
  PYTHON=python2 ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static --disable-docs
  make
}

package() {
  cd "${srcdir}/pygtksourceview-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
